
<link rel="stylesheet" href="<@baseUrl url='/static/comm/plugins/dtree/dtree.css'/>">
<link rel="stylesheet" href="<@baseUrl url='/static/comm/plugins/dtree/font/dtreefont.css'/>">
<script src="<@baseUrl url='/static/js/util/util.js'/>"></script>
<script type="text/javascript">
    AppComm.include.load("<@baseUrl url='/static/comm/js/manager/userManagerForm.js'/>","js")
</script>

<div class="layui-tab-item layui-show">
    <br>
    <div class="layui-tab-item layui-show">
        <div class="userManagerForm_box"></div>
    </div>
</div>
<script id="userManagerForm_template" type="text/html">
    <form class="layui-form" action="" style="height: 440px;">
        <div class="layui-tab-item layui-show" style="width:652px;margin: 0 auto;">
            <input type="hidden" id="id" value="{{user&&user.id}}" lay-verify="id">
            <div class="layui-form-item">
                <div class="layui-inline" id="username_div">
                    <label class="layui-form-label layui-required">账号</label>
                    <div class="layui-input-inline">
                        <input type="text" id="username" name="username" lay-verify="required" placeholder="请输入账号" autocomplete="off" class="layui-input" value="{{user&&user.username}}" />
                    </div>
                </div>
                <div class="layui-inline" id="pswd_div">
                    <label class="layui-form-label">密码</label>
                    <div class="layui-input-inline">
                        <input type="password" id="pswd" name="pswd" lay-verify="pswd" placeholder="请输入密码" autocomplete="off" class="layui-input" />
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label layui-required">姓名</label>
                    <div class="layui-input-inline">
                        <input type="text" id="fullname" name="fullname" lay-verify="required" placeholder="请输入姓名" autocomplete="off" class="layui-input" value="{{user&&user.fullname}}">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label layui-required">组织</label>
                    <div class="layui-input-inline">
                        <input type="hidden" id="groupId" name="groupId" lay-verify="groupId" autocomplete="off" value="{{user&&user.groupId}}">
                        <ul id="groupName" class="dtree" data-id="0" ></ul>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">电话</label>
                    <div class="layui-input-inline">
                        <input type="text" id="phone" name="phone" placeholder="请输入电话" autocomplete="off" class="layui-input" value="{{user&&user.phone}}">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">电子邮箱</label>
                    <div class="layui-input-inline">
                        <input type="text" id="email" name="email" placeholder="请输入电子邮箱" autocomplete="off" class="layui-input" value="{{user&&user.email}}">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label layui-required">排序号</label>
                <div class="layui-input-inline">
                    <input style="width:512px;" type="text" id="orderId" name="orderId" lay-verify="required|number" placeholder="请输入排序号" autocomplete="off" class="layui-input" value="{{user&&user.orderId}}">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">说明</label>
                <div class="layui-input-block">
                    <textarea style="width:512px;" placeholder="请输入内容" id="comment" name="comment" class="layui-textarea">{{user&&user.comment}}</textarea>
                </div>
            </div>
            <br>
            <div class="layui-form-item" style="text-align: center;">
                <div class="layui-inline">
                    <@hasPermission key="userManager:save" html='<button type="submit" class="layui-btn layui-btn-default layui-btn-sm" lay-submit lay-filter="saveBtn">提交</button>'/>
<#--                    <@hasPermission key="userManager:save" html='<a id="submitBtn" class="layui-btn layui-btn-primary layui-btn-sm" lay-event="submitBtn">提交</a>'/>-->
                    <button class="layui-btn layui-btn-primary layui-btn-sm" id="cancelBtn">取消</button>
                </div>
            </div>
        </div>
    </form>
</script>